// 装饰器
function decorator(originalFunc) {
  return function () {
    // ... do something
    console.log("装饰器", this); // this window
    return originalFunc.call(this, ...arguments); // arguments 是匿名函数的参数
  };
}
function sayHello(name) {
  console.log("Hello,", name); // Hello, zhangsan
}
const fn = decorator(sayHello);
fn("zhangsan");
